import {ADD_TODO} from '../../actions/actionTypes';
export default function todoListReducer(todoList = [], action) {
  switch (action.type) {
    case ADD_TODO:
      return [ ...todoList, action.payload ]
    default:
      return todoList
  }
}